package cn.hinglo.gameclaw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * @createTime: 2018/1/2
 * @author: HingLo
 * @description: 主要入口方法
 * @EnableTransactionManagement: 开启事物
 * @EnableCaching: 用来开启缓存技术
 * @ServletComponentScan 用于阿里巴巴的数据源监控
 * @MapperScan(value = {"cn.hinglo.gameclaw.*.dao"}) mybatis扫描
 */
@EnableTransactionManagement
@EnableCaching
@ServletComponentScan
@MapperScan(value = {"cn.hinglo.gameclaw.*.dao"}, annotationClass = Repository.class)
@SpringBootApplication
public class GameApplication {
    public static void main(String[] args) {
        SpringApplication.run(GameApplication.class, args);
    }

}
